#!/bin/sh
# Job yaml can send below ENVIRONMENT VARIABLES to me
# - arrival_rate
# - num_loop
# - service_time
# - num_threads
# END ENVIRONMENT VARIABLES

. $LKP_SRC/lib/reproduce-log.sh

cd $BENCHMARK_ROOT/adrestia || die "no $BENCHMARK_ROOT/adrestia"

: "${arrival_rate:=2000}"
: "${num_loop:=200000}"
: "${service_time:=2000}"
: "${num_threads:=1}"

log_cmd ./adrestia -a $arrival_rate -l $num_loop -s $service_time -t $num_threads
